/*
 * Copyright (c) 2017 Qunar.com. All Rights Reserved.
 */
package com.guoyu.project.web.api;

import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.InitBinder;

import java.beans.PropertyEditorSupport;
import java.util.Date;

/**
 * @author: libo  Date: 17-7-7 Time: 下午6:30
 * @version: \$Id$
 */
public class TestController {

    @InitBinder
    public void InitBinder(WebDataBinder binder){
        binder.registerCustomEditor(Date.class,new PropertyEditorSupport());
    }
}
